package com.cj.bk_app

import android.app.Application
import android.content.Context
import dagger.hilt.android.HiltAndroidApp
import com.cj.bk_app.model.bean.User
import com.tencent.mmkv.MMKV
import kotlin.properties.Delegates

@HiltAndroidApp
class App : Application() {

    companion object {
        var CONTEXT: Context by Delegates.notNull()
        lateinit var CURRENT_USER: User
    }

    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
    }

    override fun onCreate() {
        super.onCreate()
        CONTEXT = applicationContext
        MMKV.initialize(this)
    }
}